package com.kobeliu.pojo.eo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "stu")
public class Stu {

    @Id
    private Long stuId;

    @Field
    private String name;

    @Field
    private Integer age;

    @Field
    private Float money;

    @Field
    private String description;
}
